package net.example.model;

import android.view.View;

//ListView 绑定的ImageView和TextView组合的对象
public class ImageTextModel {
    //图片资源ID为0,表示没图
    private int imageResource;
    private String text;
    //  点击事件
    private View.OnClickListener handler;

    public int getImageResource(){return this.imageResource;}
    public String getText(){return this.text;}
    public View.OnClickListener getHandler(){return this.handler;}

    public ImageTextModel(int imageResource, String text, View.OnClickListener handler)
    {
        this.imageResource=imageResource;
        this.text=text;
        this.handler=handler;
    }


}
